package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.entity.AlarmSetPO;
import com.jdrx.sw.sewage.beans.vo.AlarmSetVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlarmSetDAO {
    int deleteByPrimaryKey(Long id);

    int insert(AlarmSetPO record);

    AlarmSetPO selectByPrimaryKey(Long id);

    List<AlarmSetVO> selectAll();

    int updateByPrimaryKey(AlarmSetPO record);

    AlarmSetVO selectAlarmSetBySwitchAndEffectAndNameAndLevel(@Param("switchName") String switchName,
                                                              @Param("alarmLevel") Integer alarmLevel,
                                                              @Param("dataNode") String dataNode);

    AlarmSetPO findByLevelAndTffect(@Param("alarmLevel") Integer alarmLevel,
                                    @Param("effect") Integer effect,
                                    @Param("dataNode") String dataNode);
}